using SheLife.Domain.Common;

namespace SheLife.Domain.Entities
{
    /// <summary>
    /// 角色权限实体类
    /// </summary>
    public class RolePermission : BaseEntity
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public Guid RoleId { get; set; }

        /// <summary>
        /// 权限ID
        /// </summary>
        public Guid PermissionId { get; set; }

        /// <summary>
        /// 角色导航属性
        /// </summary>
        public virtual SystemRole? Role { get; set; }

        /// <summary>
        /// 权限导航属性
        /// </summary>
        public virtual SystemPermission? Permission { get; set; }
    }
}